package com.sms;

import org.apache.struts.upload.FormFile;

/**
 * SmsSend entity. @author MyEclipse Persistence Tools
 */

public class SmsSend implements java.io.Serializable {

	// Fields

	private String theid;
	private String mobile;
	private String content;
	private String smsNumber;
	private int priority;
	private String planTime;
	/**
	 * "0"---已提交，表示短信已提交到短信群发服务器，但是尚未发送到网关
	 * "1"---等待提交，表示短信尚未提交到短信群发平台的服务器
	 * "2"---已发送，表示短信已经发送到网关，等待用户接收
	 * "3"---已接收，表示用户的手机已经收到短信
	 * "-4"---提交错误，短信被短信群发服务器拒绝
	 * "-3"---发送错误，短信被网关拒绝
	 * "-2"---接收错误，因为用户关机等原因，短信最终未被用户收到
	 * 接口服务器程序扫描 result='0'的记录并发送，然后根据结果更新result字段
	 * 如果在sms_send表上面建触发器，请严格测试，保证result从0更新到其他状态
	 * 的语句不会执行失败，否则该条记录会被接口服务器程序重复扫描并一直重复发送。
	 * */
	private String result;	private String seqId;
	private String submitTime;
	private String sendTime;
	private String recvTime;
	private String sendType;//发送类型为“1”表示为手工发送短信;"0"表示为学生进出校园时自动发送到家长手机上的
	private String sender;
	private String sendSchool;
	private String receiver;
	private String title;
	private String receiverPhone;//接收人电话号码
	
	//群发学校通知(年级分组)时type=0;
	//群发学校通知(学课分组)时type=1;
	//公文发送时type=2;
	//短信群发时type=3;
	//布置作业时type=4;
	//班级通知时type=5;
	//成绩通知时type=6;
	//家校短信时type=7;
	//老师短信发到短信中心 type=8;
	//老师的短信群发给家长  type=9;
	//家长回复短信type=10;
	
	private String type;
	
	private String departmentId;
	private String fileid;//附件文件夹最后一层地址
	//传文件要用到
	 private String attachFile;//附件名　
	 private String attachPath;//附件
	 private FormFile[] theFile;//接收附件集合
	 
	 private String cardId;//学生卡号
	// Constructors

	public String getAttachFile() {
		return attachFile;
	}

	public void setAttachFile(String attachFile) {
		this.attachFile = attachFile;
	}

	public String getAttachPath() {
		return attachPath;
	}

	public void setAttachPath(String attachPath) {
		this.attachPath = attachPath;
	}

	public FormFile[] getTheFile() {
		return theFile;
	}

	public void setTheFile(FormFile[] theFile) {
		this.theFile = theFile;
	}

	/** default constructor */
	public SmsSend() {
	}

	/** minimal constructor */
	public SmsSend(String mobile) {
		this.mobile = mobile;
	}

	/** full constructor */
	public SmsSend(String mobile, String content, String smsNumber,
			int priority, String planTime, String result, String seqId,
			String submitTime, String sendTime, String recvTime, String sendType,String sender,String sendSchool,
			String receiver,String title,String type,String receiverPhone,String departmentId,String cardId) {
		this.mobile = mobile;
		this.content = content;
		this.smsNumber = smsNumber;
		this.priority = priority;
		this.planTime = planTime;
		this.result = result;
		this.seqId = seqId;
		this.submitTime = submitTime;
		this.sendTime = sendTime;
		this.recvTime = recvTime;
		this.sendType = sendType;
		this.sender=sender;
		this.sendSchool=sendSchool;
		this.receiver = receiver;
		this.title=title;
		this.type=type;
		this.receiverPhone = receiverPhone;
		this.departmentId=departmentId;
		this.cardId=cardId;
	}

	// Property accessors

	public String getTheid() {
		return this.theid;
	}

	public void setTheid(String theid) {
		this.theid = theid;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getContent() {
		return this.content;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSmsNumber() {
		return this.smsNumber;
	}

	public void setSmsNumber(String smsNumber) {
		this.smsNumber = smsNumber;
	}

	public int getPriority() {
		return this.priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getPlanTime() {
		return this.planTime;
	}

	public void setPlanTime(String planTime) {
		this.planTime = planTime;
	}

	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getSeqId() {
		return this.seqId;
	}

	public void setSeqId(String seqId) {
		this.seqId = seqId;
	}

	public String getSubmitTime() {
		return this.submitTime;
	}

	public void setSubmitTime(String submitTime) {
		this.submitTime = submitTime;
	}

	public String getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getRecvTime() {
		return this.recvTime;
	}

	public void setRecvTime(String recvTime) {
		this.recvTime = recvTime;
	}

	public String getSendType() {
		return this.sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getSendSchool() {
		return sendSchool;
	}

	public void setSendSchool(String sendSchool) {
		this.sendSchool = sendSchool;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	public String getFileid() {
		return fileid;
	}

	public void setFileid(String fileid) {
		this.fileid = fileid;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

}